//---------------------------------------------------------------------
// <copyright file="CsdlSemanticsSpatialTypeReference.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

using Microsoft.Data.Edm.Csdl.Internal.Parsing.Ast;

namespace Microsoft.Data.Edm.Csdl.Internal.CsdlSemantics
{
    internal class CsdlSemanticsSpatialTypeReference : CsdlSemanticsPrimitiveTypeReference, IEdmSpatialTypeReference
    {
        public CsdlSemanticsSpatialTypeReference(CsdlSemanticsSchema schema, CsdlSpatialTypeReference reference)
            : base(schema, reference)
        {
        }

        public int? SpatialReferenceIdentifier
        {
            get { return ((CsdlSpatialTypeReference)this.Reference).Srid; }
        }
    }
}
